package org.example.order.service;

import cn.lingyangwl.framework.core.response.Resp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author shenguangyang
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {
    @GetMapping(value = "/storage/decrease")
    Resp<?> decrease(@RequestParam(value = "productId") Long productId , @RequestParam(value = "count") Integer count);
}
